package com.yonyou.pmclouds.basecom.bp.processor;

import com.yonyou.pmclouds.basecom.entity.SuperVO;
import com.yonyou.pmclouds.basecom.exception.BusinessException;
import com.yonyou.pmclouds.messagenotice.rmiitf.MessageNoticeMaintain;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

@Component
public class MobileNoticeInsertBatchProcessor<T extends SuperVO> implements MultiProcessor<T> {

    private final MessageNoticeMaintain noticeMaintain;

    @Autowired
    public MobileNoticeInsertBatchProcessor(MessageNoticeMaintain noticeMaintain) {
        this.noticeMaintain = noticeMaintain;
    }


    @Override
    public void process(T[] vos, T[] origs) throws BusinessException {
        noticeMaintain.insertBatchMessageNotice(vos);
    }
}
